#pragma once

#include "Utils.h"
#include "EffectDataFactory.h"
#include "EffectEntity.h"


class EffectManager
{
public:
	int spriteId;
	Sprite* sprite;
	bool isDone;

	static int currentBridgeIndex;

	EffectManager(void);
	~EffectManager();

	static EffectManager* getInstatnse(); 
	void setEffect(int effectType);
	
	void createEffect(int effectType, double x, double y);
	void uppdate(long time);
	void draw(long time);


private:
	static vector<EffectEntity*>* _effects;
	static EffectManager* _singleton;
	static void initialize();
	void _initSprites(int SpriteId, int framerate);
};